package com.bitbank.smartdevice

import android.app.Application
import android.content.Context
import android.support.multidex.MultiDex
import com.qmuiteam.qmui.arch.QMUISwipeBackActivityManager
import com.squareup.leakcanary.LeakCanary

/**
 *  Date：2018/12/17
 *  Author：xulee
 *  Desc：
 */

class SmartApp : Application() {

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        MultiDex.install(this)
    }

    override fun onCreate() {
        super.onCreate()

        if (LeakCanary.isInAnalyzerProcess(this)) {
            return
        }

        LeakCanary.install(this)
        QMUISwipeBackActivityManager.init(this)
    }

}